﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace ShopeeSdk.Response.Shopee.Item
{
    public class GetAttributesResponse : ShopeeResponse
    {
        [JsonProperty("attributes")]
        public List<Attribute> Attributes { get; set; } = new List<Attribute>();

        public class Attribute
        {
            [JsonProperty("attribute_name")]
            public string AttributeName { get; set; }
            [JsonProperty("input_type")]
            public string InputType { get; set; }
            [JsonProperty("attribute_id")]
            public int AttributeId { get; set; }
            [JsonProperty("attribute_type")]
            public string AttributeType { get; set; }
            [JsonProperty("is_mandatory")]
            public bool IsMandatory { get; set; }
            [JsonProperty("options")]
            public List<string> Options { get; set; }
        }
    }
}
